//
// Calc.hh for 208 ajust in /home/druart_p/Work/math/my-math-epi/208
//
// Made by pierrick druart
// Login   <druart_p@epitech.net>
//
// Started on  Thu May 24 09:10:49 2012 pierrick druart
// Last update Fri May 25 12:04:44 2012 pierrick druart
//

#ifndef		__CALC__
#define		__CALC__

#include	<iostream>
#include	<list>
#include	<fstream>
#include	<sstream>
#include	<iomanip>
#include	<cmath>

class		Calc
{
private:
  std::list<int>	_x;
  std::list<int>	_ox;
  std::list<double>    _tx;
  int			total;
  double		moye;
  double		proba;

public:
  Calc(const std::string & file);
  ~Calc();

private:
  void		getValueFromFile(const std::string & file);
  void		print();
  void		moyenne();
  void		probabilite();
  double       	Ckn(int k);
  double	Tx(double Ckn, int x);
  void		tab();
  void		tab2();
  double	facto(int nb);
  void		Xcar(std::list<double>, std::list<double>);
};

#endif		/* __CALC__ */
